package com.dream.model;
 

import java.io.Serializable;

import javax.persistence.Entity; 
import javax.persistence.FetchType;
import javax.persistence.ManyToOne; 
import javax.persistence.Table;
 


import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;

@Entity
@Table(name = "sys_file")
public class Sys_File extends AllId implements Serializable
{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String fileName;
	private String filePath;
	private String fileId;
	private String ground;
	private String type;  //1 音频，2视频，3图片，4文字
	
	private SysUser sysUser;//用户
	private Sys_LearnPlant sys_LearnPlant; //所属学期计划
	
	@ManyToOne(fetch = FetchType.LAZY)
	@Cascade(CascadeType.PERSIST)
	public Sys_LearnPlant getSys_LearnPlant() {
		return sys_LearnPlant;
	}

	public void setSys_LearnPlant(Sys_LearnPlant sys_LearnPlant) {
		this.sys_LearnPlant = sys_LearnPlant;
	}
	public String getFileName()
	{
		return fileName;
	}

	public void setFileName(String fileName)
	{
		this.fileName = fileName;
	}

	public String getFilePath()
	{
		return filePath;
	}

	public void setFilePath(String filePath)
	{
		this.filePath = filePath;
	}

	public String getFileId()
	{
		return fileId;
	}

	public void setFileId(String fileId)
	{
		this.fileId = fileId;
	}

	public String getGround()
	{
		return ground;
	}

	public void setGround(String ground)
	{
		this.ground = ground;
	}

	@ManyToOne
	@Cascade(CascadeType.PERSIST)
	public SysUser getSysUser()
	{
		return sysUser;
	}

	public void setSysUser(SysUser sysUser)
	{
		this.sysUser = sysUser;
	}

	public static long getSerialversionuid()
	{
		return serialVersionUID;
	}

	public String getType()
	{
		return type;
	}

	public void setType(String type)
	{
		this.type = type;
	}

 

}
